package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpInfoExample.*;

/**
 * @author wcl
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【保存工价规则】的参数")
@Data
public class EmpRuleAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "薪资规则")
    private SalaryCalculateRuleAddDTO salaryRuleAddDTO;

    @ApiModelProperty(notes = "劳务费规则")
    private SalaryCalculateRuleAddDTO serviceFeeRuleAddDTO;

    @ApiModelProperty(notes = "渠道id")
    private String channelId;

    @ApiModelProperty(notes = "员工id")
    @NotNull(message = "员工id不能为空")
    private String empId;

    @ApiModelProperty(notes = "公司id")
    private String companyId;

    @ApiModelProperty(notes = N_SALARY_RULE_ID, example = E_SALARY_RULE_ID)
    private String salaryRuleId;

    @ApiModelProperty(notes = N_SERVICE_FEE_RULE_ID, example = E_SERVICE_FEE_RULE_ID)
    private String serviceFeeRuleId;

}

